//
//  NetWorkTool.h
//  ChatForHot
//
//  Created by FLY on 2018/10/9.
//  Copyright © 2018年 FLY. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AFURLRequestSerialization.h>

NS_ASSUME_NONNULL_BEGIN

@interface NetWorkTool : NSObject

+ (void)HOTCHATRequestWithStringURL: (NSString *) stringURL
                           progress:(void (^)(NSProgress *progress))Progress
                         RequestWay: (NSString *) requestStyle
                              Parma: (NSDictionary *) parma
                       SuccessBlock: (void(^)(BOOL isSucess, NSDictionary * resultDictionary)) SuccessBlock
                       FailureBlock: (void(^)(NSError * error)) FailureBlock;

//upload
+ (void)HOTCHATUploadImageData:(NSString *)URLString
            parameters:(NSMutableDictionary *)parameters
              fileData:(void (^)(id <AFMultipartFormData> formData))mformData
              progress:(void (^)(NSProgress *uploadProgress))muploadProgress
               success:(void (^)(NSURLSessionDataTask *HOTCHATtask, NSString *HOTCHATmsgCode,NSDictionary *HOTCHATresultDic))msuccess
               failure:(void (^)(NSURLSessionDataTask *HOTCHATtask, NSError *error))failure;

+ (void)HOTCHATUpdateToken;
//show message
+ (void)HOTCHATshowMessage:(NSString *)message;
//传递消息
+ (void)HOTCHATsendMessage:(NSString *)message toUser:(NSString *)userId ;
//透传
+ (void)HOTCHATsendCmdMessageToUser:(NSString *)uid dic:(NSDictionary *)dic;

@end

NS_ASSUME_NONNULL_END
